
srcdir = .
LDFLAGS = -Wl,-lm
CFLAGS = -Wall -g 

# Change these if necessary

CC = gcc 
CPP = g++

all: server

server:Sever_Login_Itrfc.o Sever_Connect_Itrfc.o interface.o\
        VMImage_Get_Itrfc.o  Image_Download_Itrfc.o
	$(CC) -o $@ $^ $(CFLAGS) `pkg-config --libs libglade-2.0 gtk+-2.0` -export-dynamic
	
Sever_Login_Itrfc.o:Sever_Login_Itrfc.c interface.h Sever_Login_Itrfc.h
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

Sever_Connect_Itrfc.o:Sever_Connect_Itrfc.c interface.h Sever_Login_Itrfc.h
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

interface.o:interface.c
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

VMImage_Get_Itrfc.o:VMImage_Get_Itrfc.c
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

Image_Download_Itrfc.o:Image_Download_Itrfc.c
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`


clean:
	rm -f *.o core *.gdb
	


